home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
151-175
/
disk_156
/
flex
/
flex2
/
gnu.lib.src
/
readdir.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
445b
|
23 lines
/*
* BSD/Unix expansion library for Amiga.
*
* readdir() -- system independent directory code
*/
#include "dir.h"
struct direct *
readdir(my_dir)
DIR *my_dir;
{
static struct direct result ;
if (!ExNext(my_dir->d_lock, &(my_dir->d_info)))
return NULL ;
result.d_reclen = result.d_ino = 1; /* Not NULL! */
(void) strcpy(result.d_name, my_dir -> d_info.fib_FileName);
result.d_namlen = strlen(result.d_name);
return &result ;
}